package com.shenghua.service;

import com.shenghua.dao.bean.UserBean;
import com.shenghua.dao.model.User;
import org.apache.shiro.authc.SimpleAuthenticationInfo;

/**
 * @author: yzr
 * @date: 2020/2/22
 */
public interface LoginService {
    // 用于shiro获取用户权限
    UserBean getUserByName(String username);
    /**
     * 根据系统用户获取Shiro的用户
     *
     * @param user 系统用户
     */
    UserBean shiroUser(User user);
    /**
     * 获取shiro的认证信息
     */
    SimpleAuthenticationInfo getAuthenticationInfo(UserBean userBean, User user, String realmName);
}
